package com.quanquan.store.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @ClassName:SendCouponRecord
 * @Description:TODO
 * @Author:xiongjunbao
 * @Date:2019/8/20 17:28
 * @Version 1.0
 */
@Data
@Entity
@Table(name = "oo_send_coupon_record")
public class SendCouponRecord implements Serializable {

    @Id
    @Column(name = "id", unique = true, length = 64)
    private String id;

    /**
     * 券id
     */
    @Column(name = "coupon_id", length = 64)
    private String couponId;

    /**
     * 券名称
     */
    private String couponName;

    /**
     * 用户id
     */
    @Column(name = "user_id", length = 64)
    private String userId;

    /**
     * 推券时间
     */
    @Column(name = "send_time", length = 64)
    private String sendTime;

    /**
     * 推券成功状态 0-成功 1-失败
     */
    private Integer status;

    /**
     * 发券数量
     */
    private Integer count;

    /**
     * 发券人名称
     */
    private String senderName;

}
